import request from "@/utils/request";

// 查询空气消毒机消毒效果监测记录列表
export function listAirMachine(query) {
  return request({
    url: "/zp/disinfectMachine/list",
    method: "get",
    params: query,
  });
}

// 空气消毒机效果监测-未处理数量
export function unMonitorNum(query) {
  return request({
    url: "/zp/disinfectMachine/unMonitorNum",
    method: "get",
    params: query,
  });
}

// 查询空气消毒机消毒效果监测记录详细
export function getAirMachine(id) {
  return request({
    url: "/medical/airMachine/" + id,
    method: "get",
  });
}

// 新增空气消毒机消毒效果监测记录
export function addAirMachine(data) {
  return request({
    url: "/zp/disinfectMachine",
    method: "post",
    data: data,
  });
}

// 修改空气消毒机消毒效果监测记录
export function updateAirMachine(data) {
  return request({
    url: "/medical/airMachine",
    method: "put",
    data: data,
  });
}

// 删除空气消毒机消毒效果监测记录
export function delAirMachine(id) {
  return request({
    url: "/medical/airMachine/" + id,
    method: "delete",
  });
}
